-- background: 14625 from stack: in -- bmap block id: 2337 -- flags: 0000 -- background id: 0 -- name: CSL Scheduler ----- HyperTalk script ----- on openBackground installMenuBar 1150,1151,1152,1153,1154,1155,1156,-200,-201,-202,-203 end openBackground on doMenu menuItem lock screen if menuItem contains "About" then resetBackground restoreMenuBar go to card short name of this background of background "About" unlock screen with zoom close else if menuItem is "Home" then resetBackground restoreMenuBar go home else if menuItem contains "Quit" then resetBackground restoreMenuBar false go to card "Mac School® Shell" unlock screen with zoom close else if menuItem is "School Timetable" then -- View Menu push card go to card "School Timetable" of this background else if menuItem is "Student Requests" then -- Edit Menu push card go to card "Student Requests" of this background else if menuItem is "School (weekly)" OR menuItem is "Student" OR menuItem is "Student (weekly)" OR menuItem is "Timetable Options…" OR menuItem is "Assign Required…" OR menuItem is "Set Sections…" OR menuItem is "Load Teachers…" OR menuItem is "Create Timetable…" OR menuItem is "Assign Students…" OR menuItem is "Performance" then push card go to card menuItem of this background end if unlock screen end doMenu on groupOne if not hilite of target then repeat with index = 1 to 8 set hilite of background button id index to false end repeat set hilite of target to true else push card go to card line id of target of bg field "Student Name" of this bg end if end groupOne on groupTwo shiftKey if the shiftKey is down OR shiftKey is down then if icon of target is "5065" then repeat with index = 9 to 16 set icon of background button id index to "Md Unchecked Box" end repeat else repeat with index = 9 to 16 set icon of background button id index to "Md Checked Box" end repeat end if else if icon of target is "5065" then set icon of target to "Md Unchecked Box" else set icon of target to "Md Checked Box" end if end groupTwo on editText repeat with index = 1 to 8 set visible of background button id index to not visible of background button id index end repeat repeat with index = 19 to 25 set lockText of background field id index to not lockText of background field id index end repeat end editText on newCard moveTextFirst end newCard on resetBackground lock screen set hilite of background button id 1 to true repeat with index = 2 to 8 set hilite of background button id index to false end repeat repeat with index = 9 to 16 set icon of background button id index to "Md Unchecked Box" end repeat end resetBackground on moveTextFirst --exit moveTextFirst put bg field "Grade" of first card of this bg into bg field "Grade" of this card put bg field "Student #" of first card of this bg into bg field "Student #" of this card put bg field "Student Name" of first card of this bg into bg field "Student Name" of this card put bg field "Program" of first card of this bg into bg field "Program" of this card put bg field "Reqst" of first card of this bg into bg field "Reqst" of this card put bg field "Sched" of first card of this bg into bg field "Sched" of this card put bg field "Req'd" of first card of this bg into bg field "Req'd" of this card end moveTextFirst on moveTextSecond --exit moveTextSecond put bg field "Grade" of second card of this bg into bg field "Grade" of this card put bg field "Student #" of second card of this bg into bg field "Student #" of this card put bg field "Student Name" of second card of this bg into bg field "Student Name" of this card put bg field "Program" of second card of this bg into bg field "Program" of this card put bg field "Reqst" of second card of this bg into bg field "Reqst" of this card put bg field "Sched" of second card of this bg into bg field "Sched" of this card put bg field "Req'd" of second card of this bg into bg field "Req'd" of this card end moveTextSecond on moveTextThird --exit moveTextThird put bg field "Grade" of third card of this bg into bg field "Grade" of this card put bg field "Student #" of third card of this bg into bg field "Student #" of this card put bg field "Student Name" of third card of this bg into bg field "Student Name" of this card put bg field "Program" of third card of this bg into bg field "Program" of this card put bg field "Reqst" of third card of this bg into bg field "Reqst" of this card put bg field "Sched" of third card of this bg into bg field "Sched" of this card put bg field "Req'd" of third card of this bg into bg field "Req'd" of this card end moveTextThird on moveTextLast --exit moveTextLast put bg field "Grade" of this card into bg field "Grade" of last card of this bg put bg field "Student #" of this card into bg field "Student #" of last card of this bg put bg field "Student Name" of this card into bg field "Student Name" of last card of this bg put bg field "Program" of this card into bg field "Program" of last card of this bg put bg field "Reqst" of this card into bg field "Reqst" of last card of this bg put bg field "Sched" of this card into bg field "Sched" of last card of this bg put bg field "Req'd" of this card into bg field "Req'd" of last card of this bg end moveTextLast -- part 19 (field) -- low flags: 01 -- high flags: 0001 -- rect: left=8 top=78 right=174 bottom=33 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: Grade -- part 20 (field) -- low flags: 01 -- high flags: 0001 -- rect: left=42 top=78 right=174 bottom=150 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 65535 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: Student # -- part 21 (field) -- low flags: 01 -- high flags: 0001 -- rect: left=152 top=78 right=174 bottom=302 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: Student Name -- part 22 (field) -- low flags: 01 -- high flags: 0001 -- rect: left=302 top=78 right=174 bottom=364 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: Program -- part 23 (field) -- low flags: 01 -- high flags: 0001 -- rect: left=364 top=78 right=174 bottom=395 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 65535 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: Reqst -- part 24 (field) -- low flags: 01 -- high flags: 0001 -- rect: left=394 top=78 right=174 bottom=425 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 65535 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: Sched -- part 25 (field) -- low flags: 01 -- high flags: 0001 -- rect: left=424 top=78 right=174 bottom=455 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 65535 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: Req'd -- part 1 (button) -- low flags: 00 -- high flags: 4000 -- rect: left=4 top=78 right=90 bottom=461 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 2 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=4 top=90 right=102 bottom=461 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 3 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=4 top=102 right=114 bottom=461 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 4 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=4 top=114 right=126 bottom=461 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 5 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=4 top=126 right=138 bottom=461 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 6 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=4 top=138 right=150 bottom=461 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 7 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=4 top=150 right=162 bottom=461 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 8 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=4 top=162 right=174 bottom=461 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 9 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=469 top=78 right=90 bottom=483 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 10 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=469 top=90 right=102 bottom=483 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 11 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=469 top=102 right=114 bottom=483 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 12 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=469 top=114 right=126 bottom=483 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 13 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=469 top=126 right=138 bottom=483 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 14 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=469 top=138 right=150 bottom=483 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 15 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=469 top=150 right=162 bottom=483 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 16 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=469 top=162 right=174 bottom=483 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 17 (button) -- low flags: 00 -- high flags: 0002 -- rect: left=492 top=93 right=109 bottom=507 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: -- part 18 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=492 top=93 right=159 bottom=506 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: